package com.crane.oss.sys.bean.request.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author bealon
 * @email ccsu123456@qq.com
 * @date 2018年12月28日 12时22分23秒
 */
@Getter
@Setter
@ToString
@ApiModel(description = "忘记密码参数")
public class ForgetUserPassWordRequest implements Serializable {

	private static final long serialVersionUID = 6685027965415793691L;

	@ApiModelProperty(value = "用户名", name = "userName")
    @NotNull(message = "用户名不能为空")
    private String userName;

    @ApiModelProperty(value = "验证码接收手机号码", name = "phone")
    @NotNull(message = "验证码接收手机号码")
    private String phone;

    @ApiModelProperty(value = "验证码", name = "verifyCode")
    @NotNull(message = "验证码不能为空")
    private String verifyCode;

    @ApiModelProperty(value = "新密码", name = "newPassword")
    @NotNull(message = "newPassword不能为空")
    @Size(max = 100, message = "newPassword长度超长")
    private String newPassword;

}
